#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
	double A, B;
	cin >> A >> B;
	printf("MEDIA = %.5lf", (A * 3.5 + B * 7.5) / 11);
	return 0;
}